package com.opennews.openplatform.familyexpenseapi.dto.income.expense.detail.type

import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size

abstract class BasicIncomeExpenseDetailTypeDto : IncomeExpenseDetailTypeWithNameDto() {
    @field:NotBlank(message = "title can't be blank")
    @field:Size(max = 50, message = "title must be at most 50 characters")
    lateinit var title: String

    @field:Size(max = 50, message = "subtitle must be at most 50 characters")
    lateinit var subtitle: String

    @field:NotNull(message = "analysisIncluded can't be null")
    var analysisIncluded: Boolean = true
}